<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改车辆修改记录')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-carUpdateRecord-edit" th:object="${tbCarUpdateRecord}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">车辆ID：</label>
                <div class="col-sm-8">
                    <input name="carId" th:field="*{carId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">老车牌号：</label>
                <div class="col-sm-8">
                    <input name="oldCarNumber" th:field="*{oldCarNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">新车牌号：</label>
                <div class="col-sm-8">
                    <input name="newCarNumber" th:field="*{newCarNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">老VIN：</label>
                <div class="col-sm-8">
                    <input name="oldVin" th:field="*{oldVin}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">新VIN：</label>
                <div class="col-sm-8">
                    <input name="newVin" th:field="*{newVin}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">老终端编号：</label>
                <div class="col-sm-8">
                    <input name="oldTerminalNum" th:field="*{oldTerminalNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">新终端编号：</label>
                <div class="col-sm-8">
                    <input name="newTerminalNum" th:field="*{newTerminalNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">反馈人ID：</label>
                <div class="col-sm-8">
                    <input name="feedbackPeopleId" th:field="*{feedbackPeopleId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">反馈人姓名：</label>
                <div class="col-sm-8">
                    <input name="feedbackPeopleName" th:field="*{feedbackPeopleName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">更改人ID：</label>
                <div class="col-sm-8">
                    <input name="changePeopleId" th:field="*{changePeopleId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">更改人：</label>
                <div class="col-sm-8">
                    <input name="changePeopleName" th:field="*{changePeopleName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="createDate" th:value="${#dates.format(tbCarUpdateRecord.createDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "car/carUpdateRecord";
        $("#form-carUpdateRecord-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-carUpdateRecord-edit').serialize());
            }
        }

        $("input[name='createDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>